<?php

namespace App\Validation;

use Phalcon\Validation\Validator\PresenceOf;
use Phalcon\Validation\Validator\Numericality;

class PageAppValidation extends BaseValidation
{
	public function initialize()
	{
		$this->add(
			"page_sn",
			new PresenceOf(
				  [
					  "message" => ":field is required",
				  ]
			)
		);

	}

	//验证之前
	public function beforeValidation($data, $entity, $messages)
    {
        return true;
    }
}